export function validateNotEmpty(labels, array) {
	for(let i = 0;i < array.length;i ++) {
		const item = array[i];
		if(!item) {
			return '请填写' + labels[i];
		}
	}
	return null;
}

export function validatePhone(phone) {
	let reg = /^1[3-9]\d{9}$/;
	// console.log("手机号验证", this.phone.match(reg), this.phone)
	return reg.test(phone);
}